﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Whois.API.Model;

namespace Tests.ModelTests
{
    public class RegistryDataTests
    {
        [Test]
        public void ExpiresDateTimeFormat()
        {
            var data = new RegistryData() {ExpiresDateString = "Thu Jun 12 23:59:59 GMT 2014"};
            Assert.IsNotNull(data.ExpiresDate);
            var testDate = new DateTime(2014, 06, 12, 23, 59, 59);
            Assert.AreEqual(testDate, data.ExpiresDate.Value);
        }
    }
}
